package com.yeyv.net.Web.Control.Security;

import com.yeyv.net.UsefulEntity.Resp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.yeyv.net.Web.Service.GameCdkService;

@RestController
@RequestMapping("/gameCdk")
public class GameCdkController {
    @Autowired
    private GameCdkService gameCdkService;

    @RequestMapping("/spawnCdk")
    public Resp<String> spawnCdk(@RequestParam String game) {
        return Resp.success(gameCdkService.spawnCdk(game));
    }
}
